import Vue from 'vue'
import Router from 'vue-router'
import index from '@/views/index'
import code from '@/views/agent/code'
import balance from '@/views/agent/balance'
import lower from '@/views/agent/lower'
import detail from '@/views/agent/agentDetail'
import scan from '@/views/agent/scan'
import today from '@/views/agent/today'
import bus from '@/views/agent/bus'
import accredit from '@/views/agent/accredit'
import bank from '@/views/agent/bank'
import login from '@/views/login'

Vue.use(Router)

export default new Router({
  // mode:'history',
  routes: [
    {path: '/', name: 'login', component: login},
    {path: '/login', name: 'login', component: login},
    {path: '/index', name: 'index', component: index},
    {path: '/code', name: 'code', component: code},
    {path: '/balance', name: 'balance', component: balance},
    {path: '/lower', name: 'lower', component: lower},
    {path: '/detail', name: 'detail', component: detail},
    {path: '/scan', name: 'scan', component: scan},
    {path: '/today', name: 'today', component: today},
    {path: '/bus', name: 'bus', component: bus},
    {path: '/bank', name: 'bank', component: bank},
    {path: '/accredit', name: 'accredit', component: accredit}
  ]
})
